package com.qr.service.Impl;

import com.qr.dao.LoanMapper;
import com.qr.pojo.Loan;
import com.qr.service.LoanService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service
public class LoanServiceImpl implements LoanService {
    @Resource
    private LoanMapper loanMapper;
    @Override
    public int updateByPrimaryKey(Loan record) {
        return loanMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Loan> findAll() {
        return  loanMapper.findAll();
    }

    @Override
    public Loan selectByPrimaryKey(String sno, String ISBN) {
        return loanMapper.selectByPrimaryKey(sno, ISBN);
    }

    @Override
    public int deleteByPrimaryKey(String sno, String ISBN) {
        return loanMapper.deleteByPrimaryKey(sno, ISBN);
    }

    @Override
    public int insert(Loan record) {
        return loanMapper.insert(record);
    }
}
